package extend.exe;

/**
 * @author shkstart
 * @date 2022/5/9 - 17:17
 */
public class Mankind {
   private int sex;
    private int salary;

    public Mankind() {
    }

    public void manOrWoman() {
        if(sex == 1){
            System.out.println("man");
        }else if (sex == 0) {
            System.out.println("woman");
        }else {
            System.out.println("你输入的sex有误");
        }
    }

    public void employeed() {
        if(salary == 0) {
            System.out.println("no job");
        }else if(salary != 0) {
            System.out.println("job");
        }else {
            System.out.println("你输入的salary有误");
        }
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }
}
